<script>
export default {
  name: 'MButton',
  props: {
    text: String,
    id: null,
    identity: String
  },
  render(h) {
    return (
      <button id={this.identity} onClick={this.emitClick}>
        {this.text}
      </button>
    )
  },
  methods: {
    emitClick() {
      this.$emit('click', {value: 'hahah'})
    }
  }
}
</script>
